package com.kdd.campus.sh.controller;

import com.kdd.campus.common.entity.CommonResult;
import com.kdd.campus.sh.po.ShFeedback;
import com.kdd.campus.sh.service.FeedbackService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: fcp
 * @Date: 2020/5/14 21:10
 * @Description:
 */
@Api(value = "反馈")
@RestController
@RequestMapping("/feedback")
public class FeedbackController {
    @Autowired
    private FeedbackService feedbackService;

    @ApiOperation(value = "用户反馈",notes = "添加反馈信息")
    @PostMapping
    public CommonResult addFeedback(@RequestBody ShFeedback feedback){
        feedbackService.add(feedback);
        return CommonResult.success();
    }


}
